var legendsector = {};
legendsector['CRJ-900LR'] = 7
legendsector['A321-232'] = 11
legendsector['A320-251N'] = 25
legendsector['Night train'] = 1
legendsector['Train'] = 7
legendsector['A320-232'] = 7
legendsector['A321-271NX'] = 2
legendsector['ERJ-195E2'] = 1
legendsector['ERJ-190-200LR'] = 2
legendsector['A320-214'] = 2
legendsector['ERJ-190-200IGW'] = 1
legendsector['E190'] = 1
legendsector['A321-212'] = 2
legendsector['A220-300'] = 3
legendsector['A319-131'] = 1
legendsector['737-783WL'] = 3
legendsector['A330-343X'] = 4
legendsector['738'] = 1
legendsector['A320neo'] = 1
legendsector['A320-214SL'] = 6
legendsector['A320'] = 1
legendsector['ERJ-190-400STD'] = 1
legendsector['A320-271N'] = 1
legendsector['ERJ-190-100LR'] = 1
legendsector['A320-211'] = 2
legendsector['CRJ9'] = 1
legendsector['A319-112'] = 1
legendsector['TGV'] = 2
legendsector['A321-231'] = 1
legendsector['A350-941'] = 2
legendsector['737-924ERWL'] = 1
legendsector['737-MAX9'] = 1
legendsector['E195'] = 1
legendsector['Bus'] = 3
legendsector['CRJ-1000'] = 1
legendsector['A221'] = 1
legendsector['CRJ-900NG'] = 1
legendsector['A220-100'] = 1
legendsector['A319-114'] = 2
$(function () {
var chart;
$(document).ready(function() {
// Build the chart
chart = new Highcharts.Chart({
chart: {
renderTo: 'aircraft_sector',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: ''
},
tooltip: {
pointFormat: '{series.name}: {point.percentage}%',
percentageDecimals: 1
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
connectorColor: '#000000',
formatter: function() {
return ''+ this.point.name +': '+ Math.round(this.percentage*10)/10 +' % (' + legendsector[this.point.name].toLocaleString() + ')';
}
}
}
},
series: [{
type: 'pie',
name: 'Sectors by Aircraft',
data: [
['CRJ-900LR',6.2],
['A321-232',9.7],
['A320-251N',22.1],
['Night train',0.9],
['Train',6.2],
['A320-232',6.2],
['A321-271NX',1.8],
['ERJ-195E2',0.9],
['ERJ-190-200LR',1.8],
['A320-214',1.8],
['ERJ-190-200IGW',0.9],
['E190',0.9],
['A321-212',1.8],
['A220-300',2.7],
['A319-131',0.9],
['737-783WL',2.7],
['A330-343X',3.5],
['738',0.9],
['A320neo',0.9],
['A320-214SL',5.3],
['A320',0.9],
['ERJ-190-400STD',0.9],
['A320-271N',0.9],
['ERJ-190-100LR',0.9],
['A320-211',1.8],
['CRJ9',0.9],
['A319-112',0.9],
['TGV',1.8],
['A321-231',0.9],
['A350-941',1.8],
['737-924ERWL',0.9],
['737-MAX9',0.9],
['E195',0.9],
['Bus',2.7],
['CRJ-1000',0.9],
['A221',0.9],
['CRJ-900NG',0.9],
['A220-100',0.9],
['A319-114',1.8]
]
}]
});
});
});